﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using LTJ.Common;
using LTJ.FrameWork;
using LTJ.Entity;

namespace uswinweb.admin.datacontrol
{
    public partial class usergroupList : System.Web.UI.UserControl
    {
        public DataTable usergroupTab = new DataTable();
        public string strWhere = " 1=1 ";
        public string action = "";
        public string parpms = "";
        public usergroupList()
        {
            action = SASRequest.GetString("action").Trim();
            parpms = SASRequest.GetString("parms").Trim();
            if (action == "del")
            {
                int msg = UserGroup.DelUserGroup(parpms);
            }
            if (action == "search")
            {
                strWhere += " and name like '%" + parpms + "%' ";
            }
            strWhere += " order by sort asc ";
            
            usergroupTab = UserGroup.GetUserGroupList(strWhere);
        }
    }
}